package com.dingding.web.rule.action;

import javax.annotation.Resource;

import com.dingding.common.core.beans.Rules;
import com.dingding.facde.rule.service.IRuleService;
import com.dingding.web.base.action.BaseAction;

/**
 * @ClassName: ActivityAction
 * @Description: 活动模块action
 * @author yuHaiQing
 * @date 2016年3月24日 下午8:22:56
 */
@SuppressWarnings("all")
public class RuleAction extends BaseAction {

	@Resource(name = "ruleService")
	private IRuleService ruleService; // 规则接口

	/**
	 * @Description: 获取规则详情
	 * @author fengshuonan
	 * @return String
	 */
	public String getRuleDetail() {

		String ruleId = super.getPara("ruleId");

		Rules rule = this.ruleService.getRuleDetailById(ruleId);

		String jsonp = super.getResJsonp(rule);
		super.write(jsonp);

		return NONE;
	}

}
